//go:build ignore
// +build ignore

package main

import (
	"fmt"

	"github.com/yourusername/gox"
)

func TestCompleteGoxSyntax() {
	// 你的示例代码
	req := struct{ Id int }{Id: 100}
	id := 50

	query := gox.Sql(`
		SELECT * FROM t_data_brain_report_info WHERE id = #{req.Id}
		WHERE 1 = 1 
		{
			if id > 0 {
				${ AND id > 50 }
			}
		}
	`)

	fmt.Println("Complete Query:", query.String())
	fmt.Println("Args:", query.Args())
}

func main() {
	TestCompleteGoxSyntax()
}
